#include <iostream>
using namespace std;
#include <signal.h>
#include <unistd.h>
void sigcb(int signo)
{
    cout<<"catch signo is:"<<signo<<endl;
}
int main()
{
    signal(SIGINT,sigcb);
    while(1)
    {
        cout<<"i am a procee!!"<<endl;
        sleep(1);
    }
    return 0;
}